{include file="user.header.html"}
<div id="main" class="clearfix"> {include file="user.menu.html"}
  <div id="right"> {include file="user.curlocal.html"}
    <div class="wrapful">{include file="user.submenu.html"}
      <div class="wrap">
        <div class="public_index table1">
          <div class="user-integral-info mb10 clearfix">
            <div class="valid user-integral"> <b class="des">可用的积分</b> <b class="piont">{$integral.amount|default:0}</b> </div>
            <div class="invalid user-integral"> <b class="des">冻结的积分</b> <b class="piont decr">{$integral.frozen_integral|default:0}</b> </div>
            <!--{if $integral.signinabled}-->
            <div style="border:0px;" class="invalid user-integral"> 
            	<a class="desl J_SignIntegral">签到领积分</a>
            </div>
            <!--{/if}-->
          </div>
          <!--{if $integrallogs}-->
          <div class="user-integral-detail mb10">
            <table>
              <tr>
                <th>来源/用途</th>
                <th>积分变化</th>
                <th>余额</th>
                <th width="80">状态</th>
                <th>日期</th>
                <th width="300">备注</th>
              </tr>
              <!-- {foreach from=$integrallogs item=log name=fe_log} -->
              <tr>
                <td>{$log.name}</td>
                <td class="change"><!--{if $log.changes gt 0}--> 
                  <span class="plus">+{$log.changes}</span> 
                  <!--{else}--> 
                  <span class="minus">{$log.changes}</span> 
                  <!--{/if}--></td>
                <td class="balance"><span>{$log.balance}</span></td>
                <td>{$log.state}</td>
                <td>{$log.add_time|date_format:"%Y.%m.%d %H:%M:%S"}</td>
                <td width="300"><div style="padding-left:5px; text-align:left"> {$log.flag} </div></td>
              </tr>
              <!--{/foreach}-->
            </table>
          </div>
          <div class="mt20 clearfix center">{include file="page.bottom.html"}</div>
          <!--{else}-->
          <div class="notice-word">
            <p>{$lang.no_records}</p>
          </div>
          <!--{/if}--> 
        </div>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
$(function(){
	$('.J_SignIntegral').click(function(){
		$.getJSON("{url route='my_integral/sign'}",null, function(data){
			layer.open({ content:data.msg, time: 3000, end: function(){
				window.location.reload();
			}});
		});
	});
});
</script>
{include file="user.footer.html"}